/**
* Oxide
*
* Copyright (c) 2011 Dinosaur Kick Pty Ltd, All rights reserved.
*
* This source code is made available under the "Modified BSD" licensing arrangement.
* See license.txt for details.
*/
// ----------------------------------------------------------------------------

void setup_token(token_identity identity)
{
	m_token.offset = m_cursor.incrementer().offset;
	m_token.line = m_cursor.incrementer().line;
	m_token.column = m_cursor.incrementer().column;
	m_token.identity = identity;
	m_token.content.clear();
}

void setup_token(token_identity identity, const string_type& content)
{
	m_token.offset = m_cursor.incrementer().offset;
	m_token.line = m_cursor.incrementer().line;
	m_token.column = m_cursor.incrementer().column;
	m_token.identity = identity;
	m_token.content = content;
}

void setup_token(token_identity identity, char_type content)
{
	m_token.offset = m_cursor.incrementer().offset;
	m_token.line = m_cursor.incrementer().line;
	m_token.column = m_cursor.incrementer().column;
	m_token.identity = identity;
	m_token.content = string_type(1, content);
}

// ----------------------------------------------------------------------------
